home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
cuj0593.zip
/
1105085A
< prev
next >
Wrap
Text File
|
1993-03-01
|
414b
|
23 lines
// fv2.cpp - a dynamic vector of float (with a possibly
// non-zero low-bound) using a subscripting object
// implemented by aggregation with a float_array member
#include "fv2.h"
#include <assert.h>
float float_vector::operator[](int i) const
{
assert(i >= low());
return fa[i - low()];
}
fa_index float_vector::operator[](int i)
{
assert(i >= low());
return fa[i - low()];
}